<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=0.5"/>
    <title>新增请假</title>
    <script src="/static/bflow/assets/js/scriptLib.js"></script>
    <script src="/static/bflow/assets/components/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <!-- sortable -->
    <link rel="stylesheet" href="/static/bflow/assets/components/sortable/sortable.css">
    <script src="/static/bflow/assets/components/sortable/Sortable.min.js"></script>
    <!-- bootstrap-validator -->
    <script src="https://cdn.bootcss.com/1000hz-bootstrap-validator/0.11.9/validator.min.js"></script>
    <script src="/static/bflow/assets/js/bflow/example/leaveForm.js"></script>
</head>
<body>
<div class="container">
    <div class="page-header">
        <h1>请假
            <small><a href="/index.html" class="btn btn-link">首页</a></small>
        </h1>
    </div>
    <ul class="nav nav-tabs">
        <li><a href="/static/bflow/ui/example/leave/list.html"><span>全部请假记录</span></a></li>
        <li><a href="/static/bflow/ui/example/leave/myList.html"><span>我的请假记录</span></a></li>
        <li><a href="/static/bflow/ui/example/leave/copyToMeList.html"><span>抄送给我的请假申请</span></a></li>
        <li class=""><a href="/static/bflow/ui/example/leave/auditList.html">待审批</a></li>
        <li class="active"><a>新增</a></li>
    </ul>

    <form id="inputForm" role="form" class="form-horizontal mgt-10">
        <div class="row">
            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="required">*</span>请假类型</label>
                <div class="col-sm-10">
                    <select name="type" class="form-control" required>
                        <option value="">请选择</option>
                        <option value="1">事假</option>
                        <option value="2">病假</option>
                        <option value="3">休假</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="required">*</span>开始时间</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control Wdate" readonly name="beginTime" value="" onclick="WdatePicker({dateFmt:'yyyy-MM-dd  HH:mm:ss'});" required>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="required">*</span>结束时间</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control Wdate" readonly name="endTime" value="" onclick="WdatePicker({dateFmt:'yyyy-MM-dd  HH:mm:ss'});" required>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="required">*</span>请假天数(天)</label>
                <div class="col-sm-10">
                    <input type="text" name="leaveDay" pattern="^[0-9]{1,10}.[0-9]{1}$" class="form-control" value="1.0" required >
                    <span class="help-block m-b-none">只能使用数字,例:1.0，正整数最多10位，小数点后最多一位</span>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="required">*</span>请假事由</label>
                <div class="col-sm-10">
                    <textarea name="reason" rows="3" class="form-control" maxlength="100" data-count="true" required></textarea>
                    <span class="word-num-tip help-block">0/100</span>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="required">*</span>审批人集合：</label>
                <div class="col-sm-10">
                    <input type="hidden" id="auditUserIds" name="auditUserIds" required>
                    <div style="margin-left: 0px;">
                        <ul id="auditUserListUL" class="block__list block__list_tags">
                        </ul>
                        <button type="button" class="btn btn-danger" onclick="chooseAuditUser('auditUser')">＋选择审批人</button>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">抄送人集合：</label>
                <div class="col-sm-10">
                    <input type="hidden" id="copyToUserIds" name="copyToUserIds">
                    <div style="margin-left: 0px;">
                        <ul id="copyToUserListUL" class="block__list block__list_tags">
                        </ul>
                        <button type="button" class="btn btn-danger" onclick="chooseAuditUser('copyToUser')">＋选择抄送人</button>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-12 col-sm-offset-2">
                    <input name="id" type="hidden" />
                    <button class="btn btn-primary" type="submit">提交申请</button>
                    <button class="btn btn-default" type="reset">重置</button>
                </div>
            </div>

        </div>
    </form>
</div>
</body>
</html>